$OpenBSD: patch-CMakeLists_txt,v 1.2 2016/03/02 02:53:44 bentley Exp $
--- CMakeLists.txt.orig	Thu Jun  4 09:27:46 2015
+++ CMakeLists.txt	Wed Feb 24 21:06:13 2016
@@ -41,10 +41,8 @@ else()
 	set(_FLAGS_COMMON "-Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated -Wno-unused-parameter -fPIC")
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_FLAGS_COMMON} -fvisibility-inlines-hidden")
 	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
-	set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
 	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_FLAGS_COMMON}")
 	set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g3")
-	set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")
 
 	# Enable C++11 if possible
 	if((CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.6) OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.1))
@@ -62,7 +60,7 @@ else()
 	install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cg3.pc" DESTINATION "${CG_LIBDIR}/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig")
 
 	install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/manual/man/"
-		DESTINATION share/man/man1
+		DESTINATION man/man1
 		FILES_MATCHING
 		PATTERN "*.1"
 		PATTERN ".svn" EXCLUDE)
